<template>
    <div></div>
</template>

<script>
import api from '.././axios/api.js';
export default {
    name: 'mock',
    data () {
        return {
            data: []
        }
    },
    created () {
        this.getData();
    },
    methods: {
        getData () {
            api.mockdata('/data/index').then(res => {
                console.log(res);
                this.data = res.data;
            });
        }
    }
}
</script>
